package com.rybbaby.tss.front.tssAppUserCorrelationBaby.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @author 谢进伟
 * @description tss App 端用户
 * @createDate 2018-01-24 23:10
 */
@Entity
@Table(name = "tss_app_user_correlation_baby")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssAppUserCorrelationBaby implements Serializable{

    /** 主键 **/
    private String id;
    /** 主键 **/
    private String appUserId;
    /** 登录密码 **/
    private String studentId;
    /** 客户姓名 **/
    private String familyMemberId;
    /** 按本 **/
    private Integer version;

    @Id
    @GeneratedValue(generator = "tss_app_user_correlation_babyIDGenerator", strategy = GenerationType.AUTO)
    @GenericGenerator(name = "tss_app_user_correlation_babyIDGenerator", strategy = "uuid")
    @Column(name = "id", nullable = false, length = 32)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "appUserId")
    public String getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId;
    }

    @Column(name = "studentId")
    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    @Column(name = "familyMemberId")
    public String getFamilyMemberId() {
        return familyMemberId;
    }

    public void setFamilyMemberId(String familyMemberId) {
        this.familyMemberId = familyMemberId;
    }

    @Version
    @Column(name = "version")
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
